package sk.fiit.vppj.eventmanager.data;

/**
 * Data class which contains basic data about user. Class is not immutable, please don't change it until it is neccessary
 * 
 * @author Marek
 * 
 */
public final class BasicUser {

	

	private int id = 0;
	private int event_id = 0;
	private String name = null;
	private String usertype = null;
	private String datetime = null;
	private String clazz = null;
	private int group_id = 0;

	public BasicUser() {

	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getEvent_id() {
		return this.event_id;
	}

	public void setEvent_id(int event_id) {
		this.event_id = event_id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUsertype() {
		return this.usertype;
	}

	public void setUsertype(String usertype) {
		this.usertype = usertype;
	}
	

	public String getDatetime() {
		return this.datetime;
	}

	public void setDatetime(String datetime) {
		this.datetime = datetime;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	
	public int getGroup_id() {
		return this.group_id;
	}

	public void setGroup_id(int group_id) {
		this.group_id  = group_id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if( this == obj )
			return true;
		if( obj == null )
			return false;
		if( getClass() != obj.getClass() )
			return false;
		BasicUser other = ( BasicUser ) obj;
		if( id != other.id )
			return false;
		return true;
	}
	
}
